<!-- <div id="profileSection" class="content-section container mx-auto px-4 py-8">
    <div class="max-w-4xl mx-auto">
        <div class="bg-white rounded-lg shadow-sm p-6 mb-8">
            <h3 class="text-xl font-bold mb-4">个人信息</h3>
            <form id="profileForm" class="space-y-4" enctype="multipart/form-data">
                <div class="flex items-center space-x-4 mb-6">
                    <div class="relative">
                        <img id="avatarPreview" src="/static/images/default-avatar.png" alt="头像" class="w-24 h-24 rounded-full object-cover">
                        <input type="file" id="avatarInput" name="avatar" accept="image/*" class="hidden">
                        <button type="button" onclick="document.getElementById('avatarInput').click()" class="absolute bottom-0 right-0 bg-green-600 text-white p-1 rounded-full hover:bg-green-700 transition duration-300">
                            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path>
                            </svg>
                        </button>
                    </div>
                    <div class="flex-1">
                        <div class="mb-4">
                            <label class="block text-gray-700 mb-2" for="nickname">昵称</label>
                            <input type="text" id="nickname" name="nickname" class="w-full p-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500">
                        </div>
                    </div>
                </div>
                <div>
                    <label class="block text-gray-700 mb-2" for="email">邮箱</label>
                    <input type="email" id="email" name="email" class="w-full p-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500">
                </div>
                <div>
                    <label class="block text-gray-700 mb-2" for="phone">手机号</label>
                    <input type="tel" id="phone" name="phone" class="w-full p-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500">
                </div>
                <div class="text-right">
                    <button type="submit" class="bg-green-600 text-white px-6 py-2 rounded-lg hover:bg-green-700 transition duration-300">
                        保存修改
                    </button>
                </div>
            </form>
        </div>
        
        <div class="bg-white rounded-lg shadow-sm p-6">
            <h3 class="text-xl font-bold mb-4">修改密码</h3>
            <form id="changePasswordForm" class="space-y-4">
                <div>
                    <label class="block text-gray-700 mb-2" for="currentPassword">当前密码</label>
                    <input type="password" id="currentPassword" name="current_password" class="w-full p-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" required>
                </div>
                <div>
                    <label class="block text-gray-700 mb-2" for="newPassword">新密码</label>
                    <input type="password" id="newPassword" name="new_password" class="w-full p-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" required>
                </div>
                <div>
                    <label class="block text-gray-700 mb-2" for="confirmPassword">确认新密码</label>
                    <input type="password" id="confirmPassword" name="confirm_password" class="w-full p-3 border rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" required>
                </div>
                <div class="text-right">
                    <button type="submit" class="bg-green-600 text-white px-6 py-2 rounded-lg hover:bg-green-700 transition duration-300">
                        修改密码
                    </button>
                </div>
            </form>
        </div>
    </div>
</div> -->